﻿@model Entities.UserDetails
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td class="sep_padding">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="section_tit">
                         <a href="#">
                            <img alt="" src="@Links.Content.images.icon_info_png" width="14" height="14" hspace="7"
                                vspace="2" border="0" align="right" /></a><a href="#"><img alt="" src="@Links.Content.images.icon_print_png"
                                    width="16" height="16" hspace="4" border="0" align="right" /></a>
                    </td>
                </tr>
                <tr>
                    <td class="stat">
                        <div style="float: left">
                            <p>
                                Number of File/Directory Operations: @Model.TotalOperationsCount</p>
                            <p>
                                Number of deleted files: @Model.DeletedCount</p>
                            <p>
                                Number of renamed files: @Model.RenamedCount</p>
                            <p>
                                Number of moved files: @Model.MovedCount</p>
                            <p>
                                Number of created files: @Model.CreatedCount</p>
                            <p>
                                Number of deleted directories:@Model.DeletedDirectoriesCount
                            </p>
                            <p>
                                Number of created directories:@Model.CreatedDirectoriesCount
                            </p>
                            <p>
                                Last activiy Date/Time:@Model.LastActivityDate</p>
                        </div>
                        <div>
                            <p>
                                Number of changed files:@Model.ChangedCount
                            </p>
                            <p>
                                Number of owner changed files:@Model.OwnerChangedCount
                            </p>
                            <p>
                                Number of permission changed files:@Model.PermissionChangedCount
                            </p>
                            <p>
                                Number of renamed directories:@Model.RenamedDirectoriesCount
                            </p>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="stat">
                        <h2>
                            Used Client Machine Names</h2>
                        <p>
                            Top 5 used client machines</p>
                        @{
                            var grid = new WebGrid(source: Model.UsedMachines, rowsPerPage: 20, ajaxUpdateContainerId: "grid");    
                            @grid.GetHtml(htmlAttributes: new { id = "grid" }, tableStyle: "main_table", headerStyle: "columns_head", 
 columns: grid.Columns(
                              grid.Column("MachineName", "Client Name"),
         grid.Column("OperationsCount", "Number of Operations")))
                        }
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
